// ex8_8_1.cpp
#include <iostream>
int count = 0;

void display(const char *str, int n = 0);
int main(void)
{
	const char *seasons = {"Sping"};
	display(seasons);
	display(seasons);
	display(seasons);
	display(seasons);
	display(seasons);
	display(seasons);
	display(seasons, 3);
	return 0;
}

void display(const char *str, int n)
{
	if (n != 0)
	{
		for (int i = 0; i < n + count; i++)
		{
			std::cout <<"[" << i + 1 << "]" << " "
				<< str << "\n";
		}
	}
	else
	{
		std::cout << str << " " << ++count << "\n";
		
	}
}
